////////////////////////////////////////////////////////////////////////////////////////
// Stauffer Public Perceptions of Women's Inclusion and Feelings of Political Efficacy
// Replication Code - Appendix 7
///////////////////////////////////////////////////////////////////////////////////////

***********
// TABLE A8
***********

*set working directory
use 17_CCES.dta, clear

*Just Cong Estimates 
meoprobit state_responsive c.state gender_r c.cong_guess gender_r c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age white coll employed religiosity || StateAbbr: , cov(uns)
estimates store placebo1_ordered

meoprobit state_responsive c.state##gender_r c.cong_guess##gender_r c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age white coll employed religiosity || StateAbbr: , cov(uns)
estimates store placebo1_orderedb

mixed state_responsive c.state gender_r c.cong_guess gender_r c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age white coll employed religiosity || StateAbbr: , cov(uns)
estimates store placebo1_mixed

mixed state_responsive c.state##gender_r c.cong_guess##gender_r c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age white coll employed religiosity || StateAbbr: , cov(uns)
estimates store placebo1_mixedb

*With State and Cong
meoprobit state_responsive c.state gender_r c.cong_guess c.state_guess gender_r c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age white coll employed religiosity || StateAbbr: , cov(uns)
estimates store placebo2_ordered

meoprobit state_responsive c.state##gender_r c.cong_guess##gender_r c.state_guess##gender_r c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age white coll employed religiosity || StateAbbr: , cov(uns)
estimates store placebo2_orderedb

mixed state_responsive c.state gender_r c.cong_guess c.state_guess gender_r c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age white coll employed religiosity || StateAbbr: , cov(uns)
estimates store placebo2_mixed

mixed state_responsive c.state##gender_r c.cong_guess##gender_r c.state_guess##gender_r c.ideo7##c.state_ideo01 congruence i.party strong_partisan know_state ///
c.age##c.age white coll employed religiosity || StateAbbr: , cov(uns)
estimates store placebo2_mixedb

*Generate code for latex table

estout placebo1_ordered placebo1_orderedb placebo1_mixed placebo1_mixedb ///
 placebo2_ordered placebo2_orderedb placebo2_mixed placebo2_mixedb, cells(b(star fmt(%9.3f)) se(par)) ///
style(tex) stats(N) nobaselevels interaction ("X") starlevels (* .1 ** .05 *** .01)
